package com.app.web.expectMoney;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: tbyy-app->ExpectMoneyService
 * @Auther: 王伟
 * @Date: 2019/12/13 11:11
 * @Description: 预估金额
 */
@Service
public class ExpectMoneyService {
    @Autowired
    private ExpectMoneyDao expectMoneyDao;
    /**
     * 按时间获取代理预估金额
     * @param uid
     * @param beginTime
     * @param endTime
     * @return
     */
    public float getDateExpectMoney(long uid,int beginTime,int endTime){
        Map<String,Object> map = new HashMap<>();
        map.put("uid",uid);
        map.put("beginTime",beginTime);
        map.put("endTime",endTime);
        return expectMoneyDao.getDateExpectMoney(map);
    }
}
